﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ShowListUser.ascx.cs" Inherits="Web_Pages_UserControls_ShowListUser" %>
<%@ Register TagPrefix="cc1" Namespace="SiteUtils" Assembly="CollectionPager" %>
<style type="text/css">
    .style1
    {
        width: 105%;
        height: 52px;
    }
    .style2
    {
    }
    .style3
    {
        width: 126px;
    }
</style>

<asp:DataList ID="DataList1" runat="server" 
    onitemcommand="DataList1_ItemCommand" 
    onitemdatabound="DataList1_ItemDataBound">
    <ItemTemplate>
        <table class="style1">
            <tr>
                <td class="style3">
               <a href="../WebContents/Profiles.aspx?Username=<%#Eval("user.Username") %>" >
                    <asp:Image ID="Image1" runat="server" Height="92px" 
                        ImageUrl='<%# Eval("Avatar","../../Images/{0}") %>'  Width="122px" />
                </a>
                </td>
                <td class="style2">
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("user.Username") %>'></asp:Label>
                    &nbsp;</td>
                <td>
                <asp:Button ID="btnKetban" runat="server" CommandName="Ketban" 
                        PostBackUrl="~/Web Pages/WebContents/ShowListUsers.aspx" 
                        style="text-align: right" Text="Kết bạn" />

                </td>
            </tr>
        </table>
    </ItemTemplate>
</asp:DataList>

<cc1:CollectionPager ID="CollectionPager1" runat="server" 
     BackText="« Trước" FirstText="-- Đầu" LabelText="Trang:"
      LastText="Cuối" NextText="Sau »" 
    ResultsFormat="Kết quả {0}-{1} (của {2}) " ShowFirstLast="True" 
    SliderSize="5" PagingMode="QueryString" IgnoreQueryString="False">
      </cc1:CollectionPager>
      
    